package com.flexoop.lib.components.form {

	import mx.controls.List;
	import mx.controls.listClasses.IListItemRenderer;

	public class DeselectableList extends List {

		public function DeselectableList() {
			super();
		}
		
		override protected function selectItem( item:IListItemRenderer, shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean=true ):Boolean {
			var _index:int = itemRendererToIndex( item );
			
			if ( _index == selectedIndex ) {
				ctrlKey = true;
			}
			
			return super.selectItem( item, shiftKey, ctrlKey, transition );
		}

	}
}